<div>
    <div class="row">
        <div class="col-md-2 padding-r-0">
            <vc:create path="shop/adminShop"></vc:create>
        </div>
        <div class="col-md-10">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="查询条件" namespace="adminProduct"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">

                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入商品名称','adminProduct')"
                                    v-model="adminProductInfo.conditions.prodName" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-1">
                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryProductMethod()">
                                <vc:i18n name="查询" namespace="adminProduct"></vc:i18n>
                            </button>
                        </div>
                    </div>
                </div>
            </div>


            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="上架商品" namespace="adminProduct"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">

                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <th class="text-center">
                                    <vc:i18n name="商品ID" namespace="adminProduct"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="商品图片" namespace="adminProduct"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="商品分组" namespace="adminProduct"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="商品名称" namespace="adminProduct"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="销量" namespace="adminProduct"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="库存" namespace="adminProduct"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="价格" namespace="adminProduct"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="排序" namespace="adminProduct"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="状态" namespace="adminProduct"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="上架时间" namespace="adminProduct"></vc:i18n>
                                </th>
                                <th class="text-right">
                                    <vc:i18n name="操作" namespace="adminProduct"></vc:i18n>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="product in adminProductInfo.products">
                                <td class="text-center">{{product.productId}}</td>
                                <td class="text-center">
                                    <img style="width: 60px; height: 60px; border-radius: 5px;"
                                        v-bind:src="product.coverPhoto"></img>
                                </td>
                                <td class="text-center">{{product.categoryName}}</td>
                                <td class="text-center">{{product.prodName}}</td>
                                <td class="text-center">{{product.sales}}</td>
                                <td class="text-center">{{product.stock}}</td>
                                <td class="text-center">{{product.defaultSpecValue.price}}</td>
                                <td class="text-center">{{product.sort}}</td>
                                <th class="text-center">{{product.stateName}}</th>
                                <th class="text-center">{{product.createTime}}</th>
                                <td class="text-right">
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_viewProductDetail(product)">
                                            <vc:i18n name="查看" namespace="adminProduct"></vc:i18n>
                                        </button>
                                    </div>
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openDeleteProductModel(product)">
                                            <vc:i18n name="删除" namespace="adminProduct"></vc:i18n>
                                        </button>
                                    </div>
                                </td>

                            </tr>
                        </tbody>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>

    <vc:create path="admin/deleteProduct"></vc:create>


</div>